const btn = document.getElementById('btn')

const arrList = []
btn.onclick = function () {
  for (let i = 0; i < 100000; i++) {
    document.body.appendChild(document.createElement('p'))
  }
  arrList.push(new Array(100000).join('x'))
}